<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


Route::any('admin/login','Admin\LoginController@login');
Route::get('admin/code','Admin\LoginController@code');

Route::group(['middleware'=>[],'prefix'=>'admin','namespace'=>'Admin'],function (){
    Route::get('index','IndexController@index');
    Route::get('info','IndexController@info');
    Route::get('logout','LoginController@logout');
    Route::any('pass','IndexController@pass');
    Route::post('cate/changeorder','CategoryController@changeorder');
    Route::resource('category','CategoryController');
}
);




Route::get('/', function () {
    return view('welcome');
});
